//    Copyright (c) 2009 Elwyn Malethan
//
//    This file is part of SeemoreJ.
//
//    SeemoreJ is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    SeemoreJ is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.

//    You should have received a copy of the GNU General Public License
//    along with SeemoreJ.  If not, see <http://www.gnu.org/licenses/>.

package com.malethan.seemorej;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;

/**
 * <p>Defines a method to run after actions on the annotated controller. If includes is non-empty
 * then only the actions listed will be subject to the filter. If excludes is non-empty then all actions
 * apart from thiose listed will be subject to the filter. If both exclude and include are left empty, all
 * actions will be subject to the filter. If both inclide and exclude are non-empty (silly), then all
 * those actions listed in include, less those in exclude will be subject to the filter.</p>
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AfterFilter {
    //A list of actions that should be subject to the filter
    String[] include() default {};

    //A list of actions that should not be subject to the filter
    String[] exclude() default {};
}